package cn.guet.spider.ctrip.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import org.apache.ibatis.type.Alias;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 携程酒店
 *
 * @author SAGITTAR
 */
@Alias(value = "TripHotel")
@TableName(value = "hotel")
public class Hotel extends Model<Hotel> {

	private static final long serialVersionUID = 6852189108848289951L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@TableField(value = "hotel_name")
	private String name;

	@TableField(value = "hotel_pic_url")
	private String imageUrl;

	@TableField(value = "pic_local")
	private String imageLocal;

	@TableField(value = "lowest_price")
	private Float lowestPrice;

	@TableField(value = "business_area")
	private String businessArea;

	@TableField(value = "district_name")
	private String district;

	@TableField(value = "hotel_latitude")
	private String latitude;

	@TableField(value = "hotel_longitude")
	private String longitude;

	@Override
	protected Serializable pkVal() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getImageLocal() {
		return imageLocal;
	}

	public void setImageLocal(String imageLocal) {
		this.imageLocal = imageLocal;
	}

	public Float getLowestPrice() {
		return lowestPrice;
	}

	public void setLowestPrice(Float lowestPrice) {
		this.lowestPrice = lowestPrice;
	}

	public String getBusinessArea() {
		return businessArea;
	}

	public void setBusinessArea(String businessArea) {
		this.businessArea = businessArea;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	@Override
	public String toString() {
		Map<String, Object> map = new HashMap<>(4);
		map.put("id", businessArea);
		return map.toString();
	}
}
